﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace BRMC.IntelligentCommunity.Migrations
{
    public partial class up_UserParkinginfo1 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "Neighbourhood_name",
                table: "UserParkinginfos",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ParkingCode",
                table: "UserParkinginfos",
                nullable: true);

            migrationBuilder.AddColumn<long>(
                name: "ParkingId",
                table: "UserParkinginfos",
                nullable: false,
                defaultValue: 0L);

            migrationBuilder.AddColumn<string>(
                name: "ParkingName",
                table: "UserParkinginfos",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Neighbourhood_name",
                table: "CarInfos",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ParkingCode",
                table: "CarInfos",
                nullable: true);

            migrationBuilder.AddColumn<long>(
                name: "ParkingId",
                table: "CarInfos",
                nullable: false,
                defaultValue: 0L);

            migrationBuilder.AddColumn<string>(
                name: "ParkingName",
                table: "CarInfos",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Neighbourhood_name",
                table: "UserParkinginfos");

            migrationBuilder.DropColumn(
                name: "ParkingCode",
                table: "UserParkinginfos");

            migrationBuilder.DropColumn(
                name: "ParkingId",
                table: "UserParkinginfos");

            migrationBuilder.DropColumn(
                name: "ParkingName",
                table: "UserParkinginfos");

            migrationBuilder.DropColumn(
                name: "Neighbourhood_name",
                table: "CarInfos");

            migrationBuilder.DropColumn(
                name: "ParkingCode",
                table: "CarInfos");

            migrationBuilder.DropColumn(
                name: "ParkingId",
                table: "CarInfos");

            migrationBuilder.DropColumn(
                name: "ParkingName",
                table: "CarInfos");
        }
    }
}
